package gameloft.eggcatcher;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.PointerInfo;
import java.awt.Rectangle;
import java.util.Random;

import javax.swing.ImageIcon;
import javax.swing.JLabel;


public abstract class Product 
{
	Random rand = new Random();
	public int productX, productY = 80;
	protected Image imgproduct;
	PointerInfo minfo ;
	Point point ;
	Product(int x_ani)
	{
		productX = x_ani;
	}
	public void draw(Graphics g)
	{
		g.drawImage(imgproduct, productX,productY, null);
	}
	public abstract boolean detectCollision(Basket basket,Player player,int x_ani);
	public abstract boolean Check(Basket basket,Player player,int x_ani);
}
